<%--
  Created by IntelliJ IDEA.
  User: blake
  Date: 2016/8/2
  Time: 12:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid" %>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>customerDetails</title>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath }/css/customer1.css"/>
</head>
<body>
<div class="container clearfix">

    <rapid:override name="main_wrap">
        <div class="right_content">
            <%--<div class="gs_name">
                <img src="${pageContext.request.contextPath }/images/scimg.png" />
                <p>福建英朗集团股份有限公司</p>
            </div>--%>

            <div class="customer" id="customerInfo">

                <div class="common_title">
                    用户信息
                </div>
                <form
                        action="${pageContext.request.contextPath }/Customer/updateCustomerInfo.action?customerId=${customer.customerId}" name="customerInfo" method="post">
                <table>
                    <tr>
                        <td  class="first_item">用户名称</td>
                        <td class="second_item"><input type="text"
                                                       name="fullName"
                                                       class="input"
                                                       value="${customer.fullName}"/></td>
                    </tr>
                    <tr>
                        <td class="first_item">电话号码</td>
                        <td class="second_item"><input type="text"
                                                       name="telephoneNum"
                                                       class="input"
                                                       value="${customer.telephoneNum}"/></td>
                    </tr>
                    <tr>
                        <td class="first_item">邮箱</td>
                        <td class="second_item"><input type="text"
                                                       name="eEmail"
                                                       class="input"
                                                       value="${customer.eEmail}"/></td>
                    </tr>
                    <tr>
                        <td class="first_item">性别</td>
                        <td class="second_item"><input type="text"
                                                       name="strSex"
                                                       class="input"
                                                       value="<c:choose><c:when test="${customer.sSex == 0}">男</c:when><c:otherwise>女</c:otherwise></c:choose>"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="first_item">密码</td>
                        <td class="second_item"><input type="text"
                                                       name="pPassword"
                                                       class="input"
                                                       value="${customer.pPassword}"/></td>
                    </tr>
                    <tr>
                        <td class="first_item">校验位</td>
                        <td class="second_item"><input type="text"
                                                       name="sSalt"
                                                       class="input"
                                                       value="${customer.sSalt}"/></td>
                    </tr>
                    <tr>
                        <td class="first_item">ip地址</td>
                        <td class="second_item"><input type="text"
                                                       name="ipAddress"
                                                       class="input"
                                                       value="${customer.ipAddress}"/></td>
                    </tr>
                    <tr>
                        <td class="first_item">添加日期</td>
                        <td class="second_item"><input type="text"
                                                       name="dateAdded"
                                                       class="input"
                                                       value="${customer.dateAdded}"/></td>
                    </tr>

                    <tr>
                        <td class="first_item">状态</td>
                        <td class="second_item">
                            <input type="text" name="status" class="input" value="<c:choose><c:when test="${customer.sStatus == 0}">正常状态</c:when><c:otherwise>已被封号</c:otherwise></c:choose>"/>
                        </td>
                    </tr>
                </table>
                <div class="page" id="page1">
                    <input type="submit" name="customerInfo" value="保存">
                </div>
                </form>
            </div>

        </div>
    </rapid:override>

</div>
</body>
</html>
<%@include file="../common/templateJSP.jsp"%>
